<template>
  <div>
    <div class="weizhi">您当前的位置：网站首页 > 殡仪馆 >{{ name }}</div>
    <div class="funeradetail">
      <div class="funerabox">
        <div class="name">{{ name }}</div>
        <div class="author">
          <span>发布时间：{{ Releasetime | dateFormat }}</span>
          <span>作者：{{ author }}</span>
          <span>浏览次数：{{ number }}</span>
        </div>
        <div class="cover_image">
          <img :src="this.Imgurl + cover_image" alt="" class="pic" />
        </div>
        <div v-html="content" class="funeracontent"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["name", "Releasetime", "author", "number", "cover_image", "content"]
};
</script>

<style lang="scss">
.weizhi {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  padding-right: 40%;
}
.box {
  width: 60%;
  height: 100%;
  border: 1px solid #efefef;
  margin: 0 auto;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  // justify-content: center;
  align-items: center;
  // box-sizing: border-box;
  .name {
    padding-top: 2%;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
  }
  .author {
    font-size: 14px;
    color: #999999;
    padding-top: 10px;
    span {
      padding-right: 70px;
    }
  }

  .content {
    font-size: 16px;
    text-indent: 2em;
    padding: 0 50px 20px;
  }
}

.cover_image {
  display: flex;
  justify-content: center;
  padding: 4%;
  .pic {
    
    max-width: 650px;
    max-height: 650px;
    height: auto;
  }
}
.funeracontent {
  font-size: 16px;
  text-indent: 2em;
  padding: 0 50px 20px;
}
</style>
